<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/ticket/tenantTicketType.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return'<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>运营管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>定时赠送优惠券</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">赠送优惠券</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmTimeingGiveAway">
                        <input type="hidden" class="form-control" id="ticketTypeId" name="ticketTypeId"
                               value="${ticketTypeId}">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">赠送次数：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="ticketScheduleCount"
                                       name="ticketScheduleCount">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">赠送类型：</label>
                            <div class="col-sm-8">
                                <select class="form-control" name="scheduleType" id="scheduleType">
                                    <option value="0">日</option>
                                    <option value="1">周</option>
                                    <option value="1">月</option>
                                </select>
                            </div>
                        </div>


                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">首次赠送时间：</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="firstSendTime" name="firstSendTime">

                            </div>
                            <div class="col-sm-3">
                                赠送时间为下午6点
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">手机号码：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="memberMobile" name="memberMobile">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">备注：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="remark" name="remark">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">验证码：</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" autocomplete="off" id="verificationCode" name="verificationCode">
                            </div>
                            <div class="col-sm-2">
                                <button type="button" class="btn btn-success" onclick="timeingGiveAway.getAuthCode()">
                                    获取验证码
                                </button>
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var firstSendTime = laydate.render({
            elem: '#firstSendTime',
            type: 'date',
            format: 'yyyy-MM-dd',
            trigger: 'click'
        });
    });

    timeingGiveAway.init();
</script>
</body>
</html>
